#ifndef IMAGE_H
#define IMAGE_H

#include <fstream>
#include "structures.h"
#include <string.h>

class Image{
public:
	unsigned char *pic;
	int w_, h_;
	std::string filename_;
	Image(int w, int h, std::string filename);
	Image(Image const& i);
	Image();
	~Image();
	void sauvegarde() const;
	void setPixel(int x, int y, Couleur const &c);
	void setDimension(unsigned int x, unsigned int y);
	void setFileName(std::string name){ filename_ = name ; };

	static Image* lireFichier(const char *filename);
};

#endif